package com.ruoyi.trade.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 交割日对象 delivery_date
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class DeliveryDate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识ID */
    private Long id;

    /** 年(yy) */
    @Excel(name = "年(yyyy)")
    private String deliveryYear;

    /** 交割日(mmdd) */
    @Excel(name = "交割日(mmdd)")
    private String deliveryDate;

    /** 合约名 */
    @Excel(name = "合约名")
    private String contractName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDeliveryYear(String deliveryYear) 
    {
        this.deliveryYear = deliveryYear;
    }

    public String getDeliveryYear() 
    {
        return deliveryYear;
    }

    public void setDeliveryDate(String deliveryDate) 
    {
        this.deliveryDate = deliveryDate;
    }

    public String getDeliveryDate() 
    {
        return deliveryDate;
    }

    public void setContractName(String contractName) 
    {
        this.contractName = contractName;
    }

    public String getContractName() 
    {
        return contractName;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deliveryYear", getDeliveryYear())
            .append("deliveryDate", getDeliveryDate())
            .append("contractName", getContractName())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
